from selenium import webdriver
import time
from selenium.webdriver.common.by import By

d = webdriver.Chrome()
d.get("http://192.168.0.125:9009/wp-login.php")

# 获取 标题
print( d.title)
# 获取 当前窗口的网址
print( d.current_url )

# 获取 属性对应的值 get_attribute('属性名称') 获取改属性对应的值
button_ele = d.find_element(By.CSS_SELECTOR, '[id="wp-submit"]')
res = button_ele.get_attribute('value')
print(res)

# 获取文本信息  .text 获取 该元素的 文本信息
link_ele = d.find_element(By.CSS_SELECTOR, '[for="user_login"]')
res2 = link_ele.text
print(res2)